package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by liupeng on 2017/12/9.
 */
@RestController
public class HelloWorldController {

    @RequestMapping("/HelloWorld")
    public String HelloWorld()
    {
        return "Hello World!";
    }
}

/*
* http://localhost:8080/HelloWorld
*/